﻿disableSerialization;
_display = finddisplay 8000;
_txt = _display displayctrl 200;
_pas_de_raid_aerien = false ;
_raid_aerien_ok = true ;

if (raids_avi == 0) then {_pas_de_raid_aerien = true ; _raid_aerien_ok = false};
if (raids_avi == 1) then {_pas_de_raid_aerien = false ; _raid_aerien_ok = true};

if (_pas_de_raid_aerien) then 
	{
_txt CtrlSetText "Activation de l'option Raids aériens";
_txt CtrlSetTextColor [0.9,0.9,0.9,1];
CtrlShow [200,true];sleep 0.75;Ctrlshow [200,false];sleep 0.75; CtrlShow [200,true] ;
raids_avi = 1;
nbre_options = nbre_options + 1 ;
publicvariable "nbre_options";
publicvariable "raids_avi";
	};

if (_raid_aerien_ok) then 
	{
_txt CtrlSetText "Désactivation de l'option Raids aériens";
_txt CtrlSetTextColor [1,1,0,1];
CtrlShow [200,true];sleep 0.75;Ctrlshow [200,false];sleep 0.75; CtrlShow [200,true] ;
raids_avi = 0;
nbre_options = nbre_options - 1 ;
publicvariable "nbre_options";
publicvariable "raids_avi";
	};
if (true) exitWith {};